/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.GianHangDAO;
import com.miracleteam.miracle.dao.daoImpl.GianHangDAOImpl;
import com.miracleteam.miracle.entities.Gianhang;
import com.miracleteam.miracle.services.GianHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class GianHangServiceImpl implements GianHangService {

    public Gianhang LayGianHang(String id) {
        GianHangDAO ghdao=new GianHangDAOImpl();
        return ghdao.LayGianHang(id);
    }
     public List LayDanhSachGianHang()
     {
         GianHangDAO ghdao=new GianHangDAOImpl();
        return ghdao.LayDanhSachGianHang();
     }
      public  Gianhang thongTinGianHang(String ma) {
             GianHangDAO ghdao=new GianHangDAOImpl();
             return ghdao.thongTinGianHang(ma);
      }

    public  boolean capNhatThongTinGH(Gianhang gh) {
           GianHangDAO ghdao=new GianHangDAOImpl();
           return ghdao.capNhatThongTinGH(gh);
    }
}
